<template>
  <div id="shortcut" style="position: inherit;">
    <div class="w">
      <ul class="fl">
    <li>欢迎来到农业标准化种植科技平台！</li>
      </ul>
      <ul class="fr" style="margin-right:50px">

        <li><nuxt-link to="/">首页</nuxt-link></li>
        <li>
         <nuxt-link to="/intrduce">关于我们</nuxt-link>
        </li>

        <!-- <li><a href="#">新手上路</a></li> -->

        <li>
          <a href="javascript::" @click="toMyOrder">我的订单</a>
        </li>
        <li>
             <nuxt-link to="/memberCenter/indexCenter">个人中心</nuxt-link>
        </li>
        <li>
          <a href="http://admin.uktian.com" target="_blank">管理后台</a>
        </li>
        <li style="margin-right:70px">
          <a href="https://mv.uktian.com/portal/ui/login" target="_blank">监控后台</a>
        </li>
        <li v-if="!isLogin">
          <nuxt-link to="/login">请登录</nuxt-link>
        </li>
        <li><nuxt-link to="/register">请注册</nuxt-link></li>
      </ul>
      <input type="hidden" id="refreshed" value="no" data-login="no" />
    </div>
  </div>
</template>

<script>
import { mapMutations } from 'vuex'
import Cookie from 'js-cookie'
export default {
    computed: {
      isLogin() {
        return this.$store.state.isLogin
      }
    },
  data() {
    return {
    }
  },

  methods: {
    toMyOrder () {
         if (this.isLogin) {
        this.$router.push({
          path: "/memberCenter/myOrder",
         
        });
      } else {
        this.$router.push("/login");
      }
    }
  },
  mounted () {

    if (Cookie.get('token')&&Cookie.get('token')!=='')
    this.$store.commit('changeLoginStatus', true)
  }
};
</script>
<style>
@import url("../assets/css/reset.css");

.wrap {
  width: 1000px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.txtof {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.txtof2 {
  overflow: hidden;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.assemble {
  color: #fff;
  background: #e75d5d;
  padding: 4px 8px 3px;
  border-radius: 2px;
  margin-left: 10px;
  font-size: 12px;
}
.w {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.sale {
  color: #fff;
  border-radius: 16px;
  background-color: #ffb073;
  padding: 4px 12px;
  margin-left: 10px;
}
.must-fill {
  color: #e75d5d;
}
.must-fill:before {
  content: "*";
}
.priceFilter:before {
  content: "￥";
}
.layui-layer-btn .layui-layer-btn0 {
  border-color: #e75d5d !important;
  background-color: #e75d5d !important;
}
#shortcut {
  overflow: hidden;
  width: 100%;
  z-index: 11;

height: 34px;
background: #ECECEC;
}
#shortcut .w {
  width: 1200px;
  height: 35px;
  line-height: 34px;
  margin: 0 auto;
  font-size: 12px;
}
#shortcut .w .fl {
  float: left;
}
#shortcut .w .fl li {
  float: left;
  margin-right: 13px;
  color: #4A4A4A;
}
#shortcut .w .fl li .location {
  color: #ffffff;
  padding: 2px 5px;
  background-color: #e75d5d;
  max-width: 50px;
  cursor: pointer;
}
#shortcut .w .fl li .icon-locationfill {
  color: #f6af16;
}
#shortcut .w .fr {
  float: right;
}
#shortcut .w .fr .pl .dorpdown {
  padding-left: 5px;
}
#shortcut .w .fr > li {
  float: left;
  margin-right: 20px;
  cursor: pointer;
}
#shortcut .w .fr > li i {
  color: #e75d5d;
}
#shortcut .w .fr > li .dorpdown-wrapper li:hover {
  color: #e75d5d;
}
#shortcut a {
  display: block;
   color: #4A4A4A;
}
#shortcut a:hover {
  color: #e75d5d;
}
</style>
